aux_source_directory(. SRC_LISTS)
add_library(myrpc STATIC ${SRC_LISTS})

find_library(PROTOBUF_LIB protobuf PASTS /usr/local/protobuf/lib)

if(PROTOBUF_LIB)
target_link_libraries(myrpc muduo_net muduo_base ${PROTOBUF_LIB} pthread)
else()
message("not found library of protobuf")
endif()


